package xyz.xtt.activity.response;

import java.util.Objects;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ResponseResult<T> {
	private Integer code;
	private T data;

	public boolean isOK() {
		return Objects.equals(code, 0);
	}
}
